package com.zyh.zapiclientsdk;

import com.zyh.zapiclientsdk.client.ZApiClient;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties("zapi.client")
@ComponentScan
public class ZApiClientConfig {
    private String accessKey;
    private String secretKey;
    @Bean
    public ZApiClient zApiClient(){
        return new ZApiClient(accessKey,secretKey);
    }
}
